package application.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "materials")
public class MaterialsModel
{
    private List<MaterialModel> materialModels = new ArrayList<MaterialModel>();

    @XmlElement(name = "material")
    public List<MaterialModel> getMaterialModels()
    {
        return materialModels;
    }

    public void setMaterialModels(List<MaterialModel> materialModels)
    {
        this.materialModels = materialModels;
    }

    public void addMaterial(MaterialModel materialModel)
    {
        materialModels.add(materialModel);
    }
}
